﻿using System.ComponentModel.DataAnnotations;

namespace PMRC.API.Model.View
{
    /// <summary>
    /// 登录实体
    /// </summary>
    public class LoginViewModel
    {
        /// <summary>
        /// 手机号码
        /// </summary>
        [Required(ErrorMessage = "手机号码不能为空")]
        [RegularExpression(@"^1[3456789]\d{9}$", ErrorMessage = "手机号格式不正确")]
        public string PhoneNumbe { get; set; }
        /// <summary>
        /// 验证码
        /// </summary>
        [Required(ErrorMessage = "验证码不能为空")]
        public string Code { get; set; }
    }
}
